package com.xinbochuang.machine.admin.mapper.macRoom;

import java.util.List;

import com.xinbochuang.machine.admin.domain.macRoom.EquCabinetNode;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinbochuang.machine.admin.domain.macRoom.EquCabinet;
import com.xinbochuang.machine.admin.dto.EquCabinetDto;
import org.apache.ibatis.annotations.Param;

/**
 *
 * @author 杜文博
 * @date 2020-09-08
 */
@Mapper
public interface EquCabinetMapper extends BaseMapper<EquCabinet> {

	/**
	 * 查询机柜详情(弃用)
	 * @param macRoom
	 * @return
		 */
	List<EquCabinetDto> findEquCabinetDetail(String macRoom);

	/**
	 * 根据机柜名称查询机柜详情
	 */
	List<EquCabinetDto> findEquCabinetByName(String cabinetName);

	/**
	 * 机柜列表模糊查询
	 */
	List<EquCabinet> findEquCabinetListByName (String cabinetName);

	/**
	 * 根据macId查询所属机柜
	 */
	List<String> findEquCabinetByMacId(String macId);


    List<EquCabinetNode> findEquCabinetNodeByMacId(@Param("macId") String macId);
}
